package com.test08.excelpoi03;

import java.math.BigDecimal;

/*
 * 这是用来封装每一行数据的po类
 * 
 */
public class NFCBean {
	private String station;
	
	private BigDecimal count0;
	private BigDecimal count1;
	private BigDecimal count2;
	private BigDecimal count3;
	private BigDecimal count4;
	
	
	private static final BigDecimal line = new BigDecimal(3);
	public String getStation() {
		return station;
	}
	public void setStation(String station) {
		this.station = station;
	}
	public BigDecimal getCount0() {
		return count0;
	}
	public void setCount0(BigDecimal count0) {
		this.count0 = count0;
	}
	public BigDecimal getCount1() {
		return count1;
	}
	public void setCount1(BigDecimal count1) {
		this.count1 = count1;
	}
	public BigDecimal getCount2() {
		return count2;
	}
	public void setCount2(BigDecimal count2) {
		this.count2 = count2;
	}
	public BigDecimal getCount3() {
		return count3;
	}
	public void setCount3(BigDecimal count3) {
		this.count3 = count3;
	}
	public BigDecimal getCount4() {
		return count4;
	}
	public void setCount4(BigDecimal count4) {
		this.count4 = count4;
	}
	
	
	public Boolean getEnable(){
		try {
			if (this.count0.compareTo(line) == 1 && this.count1.compareTo(line) == 1 && this.count2.compareTo(line) == 1
					&& this.count3.compareTo(line) == 1 && this.count4.compareTo(line) == 1) {
				return true;
			}
		} catch (Exception e) {
		}
		return false;
	}
	@Override
	public String toString() {
		return "NFCBean [station=" + station + ", count0=" + count0 + ", count1=" + count1 + ", count2=" + count2
				+ ", count3=" + count3 + ", count4=" + count4 + "]";
	}
	
}
